package com.ys.web.entity;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 推广关键词对应多个搜索关键词
 * @author wdj
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "keyword_maping", catalog = "ysanalyze")
public class KeyWordMaping implements java.io.Serializable {

	private Integer id;
	/**代运营公司id*/
	private Integer companyId;
	/**推广关键词*/
	private String promotionKeyword;
	/**搜索关键词*/
	private String keywordSearch;
	
	
	public KeyWordMaping() {		
	}
	
	public KeyWordMaping(Integer companyId, String promotionKeyword, String keywordSearch) {
		this.companyId = companyId;
		this.promotionKeyword = promotionKeyword;
		this.keywordSearch = keywordSearch;
	}
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}	
	public void setId(Integer id) {
		this.id = id;
	}	

	@Column(name = "promotion_keyword", nullable = false, length = 100)
	public String getPromotionKeyword() {
		return promotionKeyword;
	}
	public void setPromotionKeyword(String promotionKeyword) {
		this.promotionKeyword = promotionKeyword;
	}
	
	@Column(name = "keyword_search", nullable = false, length = 450)	
	public String getKeywordSearch() {
		return keywordSearch;
	}
	public void setKeywordSearch(String keywordSearch) {
		this.keywordSearch = keywordSearch;
	}

	@Column(name = "company_id", nullable = false)	
	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	
}
